import request from '@/utils/request'

// 查询用户文章连接列表
export function listSampuser(query) {
  return request({
    url: '/om/sampuser/list',
    method: 'get',
    params: query
  })
}

// 查询用户文章连接详细
export function getSampuser(sampuserId) {
  return request({
    url: '/om/sampuser/' + sampuserId,
    method: 'get'
  })
}

// 新增用户文章连接
export function addSampuser(data) {
  return request({
    url: '/om/sampuser',
    method: 'post',
    data: data
  })
}

// 修改用户文章连接
export function updateSampuser(data) {
  return request({
    url: '/om/sampuser',
    method: 'put',
    data: data
  })
}

// 删除用户文章连接
export function delSampuser(sampuserId) {
  return request({
    url: '/om/sampuser/' + sampuserId,
    method: 'delete'
  })
}
